<!DOCTYPE html>
<html lang="en">
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta charset="utf-8" />
    <title>{block name="title"}{$title|default='金乘方 管理后台'}{/block}</title>
    <meta name="description" content="overview &amp; stats" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
    <link rel="stylesheet" href="__style_css__/admin.css" />
    <link rel="stylesheet" href="__sweet_css__/sweetalert2.min.css" />
    <!-- bootstrap & fontawesome -->
    <link rel="stylesheet" href="__ace_css__/bootstrap.min.css" />
    <link rel="stylesheet" href="__ace_font-awesome__/4.5.0/css/font-awesome.min.css" />

    <!-- page specific plugin styles -->
    <link rel="stylesheet" href="__ace_css__/bootstrap-datepicker3.min.css" />
    <!-- text fonts -->
    <link rel="stylesheet" href="__ace_css__/fonts.googleapis.com.css" />
    <!-- ace styles -->
    <link rel="stylesheet" href="__ace_css__/ace.min.css" class="ace-main-stylesheet" id="main-ace-style" />
    <link rel="stylesheet" href="__ace_css__/chosen.min.css" />
    <!--[if lte IE 9]>
    <link rel="stylesheet" href="__ace_css__/ace-part2.min.css" class="ace-main-stylesheet" />
    <![endif]-->
    <link rel="stylesheet" href="__ace_css__/ace-skins.min.css" />
    <link rel="stylesheet" href="__ace_css__/ace-rtl.min.css" />
    <!--[if lte IE 9]>
    <link rel="stylesheet" href="__ace_css__/ace-ie.min.css" />
    <![endif]-->
    <!-- inline styles related to this page -->
    <!-- ace settings handler -->
    <script src="__ace_js__/ace-extra.min.js"></script>
    <!-- HTML5shiv and Respond.js for IE8 to support HTML5 elements and media queries -->
    <!--[if lte IE 8]>
    <script src="__ace_js__/html5shiv.min.js"></script>
    <script src="__ace_js__/respond.min.js"></script>
    {block name='css'}{/block}
    <![endif]-->
</head>

<body class="no-skin">
{block name="header"}头部导航{/block}

<!--主体-->
<div class="main-container ace-save-state" id="main-container">
    <script type="text/javascript">
        try{ace.settings.loadState('main-container')}catch(e){}
    </script>
    {block name="slider"}左边导航{/block}

    {block name="main"}主内容{/block}

    {block name="footer"}底部{/block}

    <a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse">
        <i class="ace-icon fa fa-angle-double-up icon-only bigger-110"></i>
    </a>
</div><!-- /.main-container -->

{block name="script"}js{/block}
<script src="__sweet_js__/sweetalert2.min.js"></script>
<script lang="javascript">
    //控制样式
    var pathname = window.location.pathname + window.location.search;
    $(".nav-list li a").each(function() {
        var href = $(this).attr("href");
        if (pathname == href) {
            $(this).parents("ul").parent("li").addClass("active open");
            $(this).parent("li").addClass("active");
        }
    })

    // var menu = $('.nav-list').on('click' ,'a' ,function() {
    //     menu.find('a').removeClass('active')
    //     var submenu = $(this).data('submenu');
    //     if (submenu) {
    //         submenu = $('#child' + submenu);
    //     } else {
    //         $(this).parent('li').parent('li').addClass('on');
    //         $(this).parent('li').addClass('active')
    //     }
    // });
</script>
</body>
</html>
